package com.central.dataManage.service.impl;

import com.central.dataManage.service.IDelCacheService;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;

/**
 * @author Tindy
 * @date 2022/2/17
 * @describe
 */
@Service
public class DelCacheServiceImpl implements IDelCacheService {

    @CacheEvict(value = "tableList",key = "#databaseId")
    @Override
    public void delTableList(Long databaseId) {}

    @CacheEvict(value = "databaseList",key = "#datasourceId")
    @Override
    public void delDatabaseList(Long datasourceId) {}

    @CacheEvict(value = "userDbs",allEntries = true)
    @Override
    public void delUserDbs() { }

    @CacheEvict(value = "proDbs",allEntries = true)
    @Override
    public void delProDbs() { }

}
